package com.dy.lock.screen.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.dy.lock.screen.dao.AdvertTagRelationDao;
import com.dy.lock.screen.pojo.AdvertTagRelationInfo;

@Repository("advertTagRelationDao")
public class AdvertTagRelationDaoImpl extends
		BaseDaoImpl<AdvertTagRelationInfo, String> implements
		AdvertTagRelationDao {

	@Override
	public String getQueryNamespace() {
		return "mybatis.xml.AdvertTagRelationMapper";
	}

	@Override
	public List<AdvertTagRelationInfo> queryByAdId(String adId) {
		// TODO Auto-generated method stub
		return this.getSqlSession().selectList(
				getQueryNamespace() + ".queryByAdId", adId);
	}

	@Override
	public List<String> queryByAdTag(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return this.getSqlSession().selectList(
				getQueryNamespace() + ".queryByAdTag", map);
	}

}
